//权限路由
let dynamicRoute = [
    {
        path: "attendance",
        name: 'attendance',
        component: () => import(/*webpackChunkName:'attendance' */"@/pages/Home/Attendance/index.vue"),
        //路由元信息,存储路由额外信息的地方
        meta: {
            title: 'kxgl',
            name: '考勤管理'
        },
    },
    {
        path: "statistics",
        name: "statistics",
        component: () => import(/*webpackChunkName:'statistics'*/"@/pages/Home/Statistics/index.vue"),
        meta: {
            title: 'sjtj',
            name: '数据统计',
            icon:'icon-shuju1'
        },
    },
    {
        path: "users",
        name: 'users',
        component: () => import(/*webpackChunkName:'users'*/"@/pages/Home/Users/index.vue"),
        meta: {
            title: "yhgl",
            name: '用户管理'
        }
    },
    {
        path: "mine",
        name: "mine",
        component: () => import(/*webpackChunkName:'mine' */"@/pages/Home/Mine/index.vue"),
        meta: {
            title: "wdzx",
            name: '我的中心',
            icon:"icon-wode1"
        }
    },
    {
        path: "welcome",
        name: 'welcome',
        component: () => import(/*webpackChunkName:'Welcome'*/"@/pages/Home/Welcome/index.vue"),
        meta: {
            title: 'glsy',
            name: "管理首页",
            icon:'icon-shouye'
        }
    },
    {
        path: "stu",
        component: () => import(/*webpackChunkName:'StudentManager' */"@/pages/Home/StuManager/index.vue"),
        name: 'stu',
        meta: {
            title: "xygl",
            name: '学员管理'
        },
        children: [
            {
                path: "dormitory",
                component: () => import(/*webpackChunkName:'Studentdormitory'*/"@/pages/Home/StuManager/Studormitory/index.vue"),
                name: 'dormitory',
                meta: {
                    title: "xysh",
                    name: '学员宿舍'
                }
            },
            {
                path: "profile",
                component: () => import(/*webpackChunkName:'StuProfile' */"@/pages/Home/StuManager/StuProfile/index.vue"),
                name: 'profile',
                meta: {
                    title: "xyzl",
                    name: '学员资料'
                }
            },
            {
                path: "product",
                component: () => import(/*webpackChunkName:'stuProduct'*/"@/pages/Home/StuManager/StuProduct/index.vue"),
                name: 'product',
                meta: {
                    title: "xyxmgl",
                    name: '学员项目管理'
                }
            }
        ]
    },
    {
        path: "vipManager",
        name: 'vipManager',
        component: () => import(/*webpackChunkName:"vipManager"*/"@/pages/Home/vipManager/index.vue"),
        meta: {
            title: "vip",
            name: "vip管理"
        },
        children: [
            {
                path: "charge",
                name: "charge",
                component: () => import(/*webpackChunkName:"charge"*/"@/pages/Home/VipManager/Charge/index.vue"),
                meta: {
                    title: 'vipCharge',
                    name: '充值中心'
                },
            },
            {
                path: "order",
                name: 'order',
                component: () => import(/*webpackChunkName:"order"*/"@/pages/Home/VipManager/Order/index.vue"),
                meta: {
                    title: 'order',
                    name: '订单管理'
                },
            }
        ]
    }
]

export default dynamicRoute